package org.jeecg.modules.wlhy.bill.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.paycenter.pay.dto.PayBillData;
import org.jeecg.modules.wlhy.bill.entity.HyShippingNoteBill;
import org.jeecg.modules.wlhy.bill.entity.ImportShippingBillDTO;

import java.util.Date;
import java.util.List;

/**
 * @Description: hy_shipping_note_bill
 * @Author: jeecg-boot
 * @Date:   2021-01-20
 * @Version: V1.0
 */
public interface IHyShippingNoteBillService extends IService<HyShippingNoteBill> {

    IPage<HyShippingNoteBill> getPageList(Page<HyShippingNoteBill> page,
                                          QueryWrapper<HyShippingNoteBill> queryWrapper);

    List<HyShippingNoteBill> getList(QueryWrapper<HyShippingNoteBill> queryWrapper);

    String queryBankHd(HyShippingNoteBill hyShippingNoteBill);

    List<HyShippingNoteBill> driverDeclareStat(Date startTime, Date endTime);

    void saveCompanyBill(PayBillData payBillData);

    void saveBatchShippingNote(List<HyShippingNoteBill> list);

    List<ImportShippingBillDTO> queryImportShippingBillDTOS(List<ImportShippingBillDTO> list);

    HyShippingNoteBill ImportShippingBillDTOTOHyShippingNoteBill(ImportShippingBillDTO importShippingBillDTO,
            String toString);

    //获取支付运费 流水单
    HyShippingNoteBill getBillByShippingId(String shipping_id);
    //获取预支付运费流水单
    HyShippingNoteBill getPreBillByShippingId(String shipping_id);

    HyShippingNoteBill getByBillNumForUpdate(String billNum);

    void updateRxtInfoById(String id, String rxtInfo);
}

